package blog.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import blog.entity.Menu;
import blog.mapper.MenuMapper;
import blog.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService {
	@Resource
	MenuMapper menuMapper;

	@Override
	public List<Menu> findAll() {
		return menuMapper.findAll();
	}

	@Override
	public void deleteMenuById(Integer menuId) {
		menuMapper. deleteMenuById(menuId);
		
	}

	@Override
	public void add(Menu menu) {
		menuMapper.add(menu);
		
	}

}
